﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpMUD.Framework.IO.HumanInterface.Terminal;

namespace SharpMUD.Framework.Net.Telnet
{
    public partial class TelnetSession
#if TELNET_SESSION_SELF_THREADED
        : IBlockingInputTerminal
#else
        : IInteractiveTerminal
#endif
    {
        #region IInteractiveTerminal Members


        public Encoding InputEncoding
        {
            get
            {
                return this.DefaultTextEncoding;
            }
            set
            {
                if (value == null)
                    throw new ArgumentNullException("value");
                this.DefaultTextEncoding = value;
            }
        }

        public void Beep()
        {
            this.Out.Write('\x07');
        }

        public void Clear()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IOutputTerminal Members


        public Encoding OutputEncoding
        {
            get
            {
                return this.DefaultTextEncoding;
            }
            set
            {
                if (value == null)
                    throw new ArgumentNullException("value");
                this.DefaultTextEncoding = value;
            }
        }

        #endregion
    }
}
